
// Page list

.pages__page-list {
	margin: 0;
	width: 100%;

	.placeholder-text {
		color: transparent;
		background-color: var( --color-neutral-0 );
		animation: loading-fade 1.6s ease-in-out infinite;
	}
}

.pages__page-list-header {
	background: var( --color-neutral-0 );
	box-shadow: 0 0 0 1px rgba( var( --color-neutral-10-rgb ), 0.5 ), 0 1px 2px var( --color-neutral-0 );
	color: var( --color-neutral-light );
	font-size: $font-body-extra-small;
	padding: 6px 11px;
	text-transform: uppercase;

	.gridicons-time {
		color: var( --color-neutral-light );
		margin-right: 4px;
		vertical-align: text-top;
	}
}

// <Page> component
.page {
	align-items: center;
	display: flex;

	.site-icon {
		display: none;

		@include breakpoint-deprecated( '>660px' ) {
			display: block;
			margin-right: 10px;
			min-width: 34px;
		}
	}

	&.is-indented {
		padding-left: 136px;

		&.is-indented-level-1 {
			padding-left: 40px;
		}

		&.is-indented-level-2 {
			padding-left: 56px;
		}

		&.is-indented-level-3 {
			padding-left: 70px;
		}

		&.is-indented-level-4 {
			padding-left: 88px;
		}

		&.is-indented-level-5 {
			padding-left: 104px;
		}

		&.is-indented-level-6 {
			padding-left: 120px;
		}

		&.is-indented-level-7 {
			padding-left: 136px;
		}
	}
}

.page__hierarchy-indent {
	background: var( --color-neutral-0 );
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	box-shadow: 0 0 0 1px rgba( var( --color-neutral-10-rgb ), 0.5 ), 0 1px 2px var( --color-neutral-0 );

	&.is-indented {
		width: 112px;

		&.is-indented-level-1 {
			width: 16px;
		}

		&.is-indented-level-2 {
			width: 32px;
		}

		&.is-indented-level-3 {
			width: 48px;
		}

		&.is-indented-level-4 {
			width: 64px;
		}

		&.is-indented-level-5 {
			width: 80px;
		}

		&.is-indented-level-6 {
			width: 96px;
		}

		&.is-indented-level-7 {
			width: 112px;
		}
	}
}

.page__main {
	flex-grow: 1;
}

.page__title,
.page__title:visited {
	@extend %content-font;
	color: var( --color-neutral-70 );
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;

	display: inline;
	margin-right: 33px;

	word-break: break-word;

	.gridicon {
		color: var( --color-neutral-light );
		margin: 2px 8px -2px 0;
	}
}
.page.is-untitled .page__title {
	color: var( --color-neutral-light );
	font-style: italic;
}

.page__title .info-popover {
	margin-left: 4px;
}

.page__actions-toggle {
	margin-left: 24px;
}

.page__popover-more-info {
	color: var( --color-neutral-light );
	padding: 4px 16px 8px;
	font-size: $font-body-extra-small;
	max-width: 150px;
	text-align: left;
}

.page__delete-item.popover__menu-item {
	&:hover,
	&:focus {
		background-color: var( --color-error );
		border: 0;
		box-shadow: none;
		color: var( --color-text-inverted );
	}
}

.page__shadow-notice-cover {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: z-index( 'root', '.page__shadow-notice-cover' );
	background-color: rgba( var( --color-neutral-0-rgb ), 0.8 );
	display: flex;
	align-items: center;
	overflow: hidden;
}

@keyframes shadow-notice-appear {
	0% {
		transform: translateX( 50px );
	}

	100% {
		transform: translateX( 0 );
	}
}

.notice.is-compact.page__shadow-notice {
	margin-left: auto;
	margin-right: 24px;
	animation: shadow-notice-appear 0.15s cubic-bezier( 0.175, 0.885, 0.32, 1.275 ); // http://easings.net/#easeOutBack
}
